package com.hornsun.util;

/**
 * Created by zhouzhenyan on 2018/5/29.
 */
public class ObjByteUtil {
    public static int BytesOrderConv(int data)
    {
        byte byte4 = (byte) (data & 0xff);
        byte byte3 = (byte) ((data & 0xff00) >> 8);
        byte byte2 = (byte) ((data & 0xff0000) >> 16);
        byte byte1 = (byte) ((data & 0xff000000) >> 24);

        return ((byte1& 0xff)<<0)  + ((byte2& 0xff)<<8) + ((byte3& 0xff)<< 16) +((byte4& 0xff)<<24) ;
    }
}
